package com.hb.game.pk.ui.activity.mine.customer_center;

import android.os.Bundle;
import android.view.View;

import com.hb.game.pk.R;
import com.hb.game.pk.base.BaseActivity;
import com.hb.game.pk.widgets.titlebar.TitleBar;

import butterknife.BindView;

public class SysNoticeActivity extends BaseActivity {
    @BindView(R.id.title_bar)
    TitleBar titleBar;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_sys_notice;
    }

    @Override
    protected int getRootViewId() {
        return R.id.layout_root;
    }

    @Override
    protected int getRefreshId() {
        return 0;
    }

    @Override
    protected int getListViewId() {
        return R.id.rv_list;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        super.initView(savedInstanceState);
        titleBar.getLlLeft().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SysNoticeActivity.this.finish();
            }
        });
    }

    @Override
    protected void initAdapter() {
//        List<String> games = new ArrayList<>();
//        games.add("游戏1");
//        games.add("游戏2");
//        games.add("游戏3");
//        if (mAdapter == null) {
//            mAdapter = new SysNoticeListAdapter(R.layout.item_sys_notice_list);
//            mAdapter.setNewData(games);
//        } else {
//            mAdapter.setNewData(games);
//        }
        super.initAdapter();
    }

    @Override
    public boolean isNeedLoadMore() {
        return false;
    }
}
